package com.hzdesk.media.matvector.koreabatch.client.my_paperless.adapter;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.View;

import com.hzdesk.media.matvector.koreabatch.client.my_paperless.R;
import com.hzdesk.media.matvector.koreabatch.client.my_paperless.base.BaseAdapter;
import com.hzdesk.media.matvector.koreabatch.client.my_paperless.base.BaseViewHolder;
import com.hzdesk.media.matvector.koreabatch.client.my_paperless.view_holder.DwonlaodCompleteViewHolder;

/**
 * Created by Administrator on 2018/8/13.
 * 杭州席媒科技有限公司  Developers  刘传华  10
 * 佛祖镇楼 bug辟易
 */

public class DwonlaodCompleteAdapter<T> extends BaseAdapter<DwonlaodCompleteViewHolder>{

    public DwonlaodCompleteAdapter(Context mContext) {
        super(mContext);
    }

    @Override
    protected int getItemLayout() {
        return R.layout.my_recyclerview_item_dwonload_complete;
    }

    @Override
    protected BaseViewHolder getItemViewHolder(View view) {
        return new DwonlaodCompleteViewHolder(view);
    }

    @Override
    protected void onMyBindViewHolder(BaseViewHolder holder, final int position) {
        DwonlaodCompleteViewHolder dwonlaodCompleteViewHolder = (DwonlaodCompleteViewHolder) holder;
        dwonlaodCompleteViewHolder.getRl_next_pager().setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if(mIonClickedItemListenter != null){
                    mIonClickedItemListenter.onClickedSecond(position);
                }
            }
        });
        dwonlaodCompleteViewHolder.getMy_reund_imageview().setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if(mIonClickedItemListenter != null){
                    mIonClickedItemListenter.onClickedFist(position);
                }
            }
        });
    }

}
